<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */

$this->title = Yii::t('app', '修改密码');
$this->params['breadcrumbs'][] = $this->title;
$message = Yii::$app->getSession()->getFlash('message');
?>
<?php if($message):?>
<div class="alert alert-success"><?=$message?></div>
<?php endif;?>
<div class="category-index">
    <section class="panel panel-default">
        <header class="panel-heading font-bold">修改密码</header>
        <div class="panel-body">
            <form class="form-horizontal ajax-submit" method="post">
                <div class="form-group">
                    <label class="col-sm-1 control-label">旧密码</label>
                    <div class="col-sm-2">
                        <input type="password" class="form-control" name="User[old_password_hash]" placeholder="请输入旧密码">
                        <span class="help-block m-b-none"></span><!--注释表单-->
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-1 control-label">新密码</label>
                    <div class="col-sm-2">
                        <input type="password" class="form-control" name="User[password_hash]" placeholder="请输入新密码">
                        <span class="help-block m-b-none"></span><!--注释表单-->
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-1 control-label">确认密码</label>
                    <div class="col-sm-2">
                        <input type="password" class="form-control" name="User[repeat_password_hash]" placeholder="请再次输入新密码">
                        <span class="help-block m-b-none"></span><!--注释表单-->
                    </div>
                </div>
                <div class="line line-dashed line-lg pull-in"></div>

                <div class="form-group">
                    <div class="col-sm-4 col-sm-offset-2">
                        <button type="button" class="btn btn-default">取消</button>
                        <button type="submit" class="btn btn-primary">保存</button>
                    </div>
                </div>
                <input type="hidden" value="<?php echo Yii::$app->request->csrfToken; ?>" name="<?= Yii::$app->request->csrfParam?>" >
            </form>
        </div>
    </section>


</div>